package edu.byui.chat;

import java.io.Serializable;

@SuppressWarnings("serial")
public class Command implements Serializable {
	private String header;
	private String username;
	private Message body;
	
	public Command() {
		super();
		header = new String();
		username = new String();
		body = new Message();
	}
	
	public Command(String head, String user, Message aMessage) {
		super();
		header = head;
		username = user;
		body = aMessage;
	}
	
	public Command(String head, String user) {
		super();
		header = head;
		username = user;
		body = new Message();
	}
	
	public String getHeader() {
		return header;
	}

	public void setHeader(String header) {
		this.header = header;
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public Message getBody() {
		return body;
	}

	public void setBody(Message body) {
		this.body = body;
	}
}
